package com.artqiyi.dollmachine.common.constant;




/**
 * Created by Administrator on 2017/10/30 0030.
 */

public class ServerConstant {

    //服务器地址
    public static String SERVER_URL = "http://icb.wwjmall.artqiyi.com";//工控板环境

    //获取轮播图
    public static String getBanner() {
        return SERVER_URL + "/api/banners";
    }

    //首页娃娃机列表
    public static String getDollList() {
        return SERVER_URL + "/api/machines";
    }

    //获取娃娃机详情
    public static String getDollDetail() {
        return SERVER_URL + "/api/machines/";
    }

    //开始游戏
    public static String startDollGame() {
        return SERVER_URL + "/api/game-records";
    }

    //游戏操作
    public static String dollOperate() {
        return SERVER_URL + "/api/game-records/doll-operate";
    }

    //我的游戏记录列表
    public static String getGameRecords() {
        return SERVER_URL + "/api/game-records";
    }

    //获取用户信息
    public static String getUserInfo() {
        return SERVER_URL + "/api/account";
    }

    //娃娃币流水记录
    public static String getCoinRecords() {
        return SERVER_URL + "/api/coin-records";
    }

    //娃娃币充值列表
    public static String getCoinBuy() {
        return SERVER_URL + "/api/coins";
    }

    //配置
    public static String getConfig() {
        return SERVER_URL + "/api/config";
    }

    //生成支付交易单号（模拟支付）
    public static String getFakePay() {

        return SERVER_URL + "/api/payments/fake-pay";
    }

    //生成支付交易单号
    public static String getPay(boolean isFakePay) {
        return SERVER_URL + (isFakePay?"/api/payments/fake-pay":"/api/payments");
//        return SERVER_URL + "/api/payments";
    }

    //获取支付参数配置
    public static String getPayConfig() {
        return SERVER_URL + "/api/payments/";
    }

    //交易单号查询
    public static String getQueryTrasactionID() {
        return SERVER_URL + "/api/payments/";
    }

    //游戏抓取记录
    public static String getDollCatchRecord() {
        return SERVER_URL + "/api/machines/";
    }

    //微信移动应用授权登录
    public static String wxLogin() {
        return SERVER_URL + "/api/wechat/oauth-mobile";
    }

    //退出登录
    public static String logout() {
        return SERVER_URL + "/api/account/logout";
    }

    //进入、退出房间
    public static String enterOrExitRoom() {
        return SERVER_URL + "/api/machines/";
    }

    //总充值金额
    public static String getCoinTotal() {
        return SERVER_URL + "/api/payments/coin-total";
    }

    //获取充值记录
    public static String getPayRecord() {
        return SERVER_URL + "/api/payments";
    }

    //获取首页娃娃抓中列表
    public static String getHomeCatchList() {
        return SERVER_URL + "/api/doll-records/latest";
    }

//    //获取流地址
//    public static String getStreamAddress(String doll_env) {
//        return (TextUtils.equals(Constant.DOLL_ENV_TEST, doll_env)?VIDEO_SERVER_TEST_URL: VIDEO_SERVER_URL) + "/api/index.php?app=video&act=get_room_info";
//    }
}
